import java.util.Scanner;

public class IO1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            int i=sc.nextInt();
            int j=sc.nextInt();
            if(i==0&&j==0)break;
            System.out.println(i+j);
        }

    }
}
